<?php
class Pageley_Serializer_Http extends Pageley_Serializer_Abstract {

    private $cipher;
    
    public function __construct() {
        $this->cipher = new Pageley_Util_Md5Cipher();
    }

    public function shouldValidate() {
        return true;
    }

    public function encrypt($value) {
        return $this->cipher->encrypt($value);
    }

    protected function serializeName($propertyName, $attribute) {
        return $propertyName;
    }

    protected function containsKey($values, $serializedName) {
        return $values->containsKey($serializedName);
    }
}